<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTeachersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('teachers', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('photo_id')->default(0)->comment('头像');
            $table->string('name')->default('')->comment('姓名');
            $table->string('phone')->default('')->comment('手机');
            $table->string('email')->default('')->comment('邮箱');
            $table->string('sex')->default('')->comment('男male,女female');
            $table->string('area')->default('')->comment('地区');
            $table->string('desc')->default('')->comment('简介');
            $table->text('detail')->nullable()->comment('详细介绍');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('teachers');
    }
}
